home *** CD-ROM | disk | FTP | other *** search
- Program EX_0305;
- {Listing 5P - see documentation in TUTOR.SSS}
-
- uses SSS;
- { For Pascal other than Turbo/Quick erase above line }
-
- { For MS Pascal $include:'SSSP1.H' }
-
- var
- i, c: integer;
-
- { For MS Pascal $include:'SSSP2.H' }
-
- procedure prime;
- begin
- INIQUE(0,0,2);
- INISTA(1,'Out of stock',0,0,0,0);
- INISTA(2,'Ave stock',1,0,0,0);
- end;
-
- begin
-
- prime;
-
- for i:=1 to 3 do
-
- begin
- c := 15;
- SETT(30*(i-1));
- TALLY(2,c);
- SETT(T + EX(2));
-
- while T <= 30*i do
- begin
- if c > 0 then c := c - 1 else TALLY(1,1);
- TALLY(2,c);
- SETT(T + EX(2));
- end;
-
- end;
-
- SUMRY('');
-
- end.
-